#include <my_header.h>
#include"../include/head.h"
void *threadFunc(void*){
    while(1){
        printf("to do\n");
        sleep(10);
    }
}
int make_long_work(shareRes_t *pshareRes, int longWorkerNum){ //创建工人
    for(int i = 0; i < longWorkerNum; i++){
        pthread_create(&pshareRes->long_tidarr.arr[i], NULL, threadFunc,&pshareRes->long_task_queue);
        return 0;
    }
}
int make_short_work(shareRes_t *pshareRes, int shortWorkerNum){ //创建工人
    for(int i = 0; i < shortWorkerNum; i++){
        pthread_create(&pshareRes->short_tidarr.arr[i], NULL, threadFunc, &pshareRes->short_task_queue);
    }

    return 0;

}
